package com.example.carbon.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BomMaterialDao {

    @Delete("delete from bom_material_table where bom_id=#{bomId}")
    boolean delInfo(String bomId);

    @Insert("insert into bom_material_table(bom_id,material_id) values (#{bomId},#{materialId})")
    boolean insertNewInfo(String bomId,String materialId);

}
